import SET_CLIENT_HEIGHT from 'Constants/webConstants';

const initialState = {
  clientHeight: 0,
};

export default function webReducer(state = initialState, action) {
  switch (action.type) {
    case SET_CLIENT_HEIGHT:
      return Object.assign({}, state, {
        clientHeight: action.clientHeight,
      });
    default:
      return state;
  }
}
